package models

import (
	"time"
)

type MenGong struct {
	MenGongId []byte    `xorm:"not null pk BINARY(20)"`
	Type      int       `xorm:"not null comment('门与宫的关系:按照生克关系') unique INT"`
	Title     string    `xorm:"not null VARCHAR(20)"`
	Desc      string    `xorm:"not null comment('门宫关系的描述,json数据表示') VARCHAR(255)"`
	Status    int       `xorm:"not null default 1 comment('状态:1为有效，0为无效') INT"`
	CreatedAt time.Time `xorm:"DATETIME"`
	UpdatedAt time.Time `xorm:"DATETIME"`
}

type MenShen struct {
	MenShenId []byte    `xorm:"not null pk BINARY(20)"`
	Type      int       `xorm:"not null comment('门与神的关系:按照生克关系') unique INT"`
	Title     string    `xorm:"not null unique VARCHAR(20)"`
	Desc      string    `xorm:"not null comment('门神关系的描述,json数据表示') VARCHAR(255)"`
	Status    int       `xorm:"not null default 1 comment('状态:1为有效，0为无效') INT"`
	CreatedAt time.Time `xorm:"DATETIME"`
	UpdatedAt time.Time `xorm:"DATETIME"`
}

type MenTgan struct {
	MenTganId []byte    `xorm:"not null pk BINARY(20)"`
	Type      int       `xorm:"not null comment('门与天干的关系:按照生克关系') unique INT"`
	Title     string    `xorm:"not null unique VARCHAR(20)"`
	Desc      string    `xorm:"not null comment('门星关系的描述,json数据表示') VARCHAR(255)"`
	Status    int       `xorm:"not null default 1 comment('状态:1为有效，0为无效') INT"`
	CreatedAt time.Time `xorm:"DATETIME"`
	UpdatedAt time.Time `xorm:"DATETIME"`
}

type MenXing struct {
	MenXingId []byte    `xorm:"not null pk BINARY(20)"`
	Type      int       `xorm:"not null comment('门与星的关系:按照生克关系') unique INT"`
	Title     string    `xorm:"not null unique VARCHAR(20)"`
	Desc      string    `xorm:"not null comment('门星关系的描述,json数据表示') VARCHAR(255)"`
	Status    int       `xorm:"not null default 1 comment('状态:1为有效，0为无效') INT"`
	CreatedAt time.Time `xorm:"DATETIME"`
	UpdatedAt time.Time `xorm:"DATETIME"`
}

type Self struct {
	SelfId      []byte    `xorm:"not null pk BINARY(20)"`
	Type        string    `xorm:"not null comment('宫:G,神:S,星:X,门:M,天干:TG') VARCHAR(10)"`
	PhoneNumber int       `xorm:"not null INT"`
	Title       string    `xorm:"not null comment('宫神星门对应某个数字的标题') VARCHAR(20)"`
	Desc        string    `xorm:"not null comment('宫神星门，自身的描述') VARCHAR(255)"`
	Status      int       `xorm:"not null default 1 comment('状态') INT"`
	CreatedAt   time.Time `xorm:"DATETIME"`
	UpdatedAt   time.Time `xorm:"DATETIME"`
}
